package com.yunfei.yikao.web.dataobject;

import com.yunfei.yikao.web.validator.EmailCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @date 2019/11/07
 */
public class ZhangyunfeiYikao implements Serializable {
    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @Email
    private String email;


    /**
     * 姓名
     */
    @NotBlank(message = "昵称不能为空")
    private String name;

    /**
     * 个性域名
     */
    private String domainname;

    public String getEmailCode() {
        return emailCode;
    }

    public void setEmailCode(String emailCode) {
        this.emailCode = emailCode;
    }

    /**
     * 自定义emailCode
     */
    @EmailCode(message="验证码错错错")
    private String emailCode;

    /**
     * 密码
     */
    @Min(value = 6)
    private String password;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDomainname() {
        return domainname;
    }

    public void setDomainname(String domainname) {
        this.domainname = domainname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}